home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
13
/
2
/
DISK1324.ZIP
/
DBSCAN.DOC
< prev
next >
Wrap
Text File
|
1988-02-03
|
6KB
|
168 lines
DBSCAN by SOFTSHOP
WHAT IS IT?
DBSCAN is a utility program that provides a browse like
scroll of any dBASE III type data file. The program allows the
user to select the fields and the position on the screen where
they are viewed. DBSCAN is similar to the BROWSE command of dBASE
III except that it permits no editing or adding of data and its
position on the screen is controlled by the user. Try it, you'll
like it, and read on to learn how you can use it for your own
programming needs.
HOW DO I USE IT?
If you have a hard disk, copy just three files DBSCAN.EXE
, DBSCAN.DBF, and DBSCAN.DOC to a directory of your choice. Execute
the program by being in the proper directory and typing DBSCAN from
the DOS prompt. If you only have a floppy drive, simple type DBSCAN
at the A: or B: prompt. You will see the following:
Database To Scan DBSCAN (This is the sample database file provided.
However, you may scan any dBASE III DBF
type file by providing the complete pathed
name without the DBF extension.
Press enter to accept the database you wish to scan. You will
then see:
Fields To View CU_CODE + SPACE(1) + DTOC(CU_DATELC) + SPACE(1)
/use right arrow to see this/ + STR(CU_TYSALES,11,2)
Title Customer Chg Date Amount Chg
Starting Row 11
Starting Column 30
Length of Window 10
The entire description of the Fields To View entry can only
be seen by panning to the right by using the right arrow key.
The Fields To View prompt is the most critical to understand,
so don't go the sleep now. DBSCAN will show any field in the database
as long as the field is in a string type format. On the far right of
the screen the first 20 field names are shown along with their field
codes. You simply enter the field names you want, look at the example
and experiment with your own entries. For example, enter:
CU_CODE + SPACE(1) + CU_DESCR
or try CU_DESCR + SPACE(1) + "$" + STR(CU_LYSALES,7,0)
Page 1
See what I mean? All data type fields must have the DTOC conversion
applied whereas a numeric field must have the STR conversion, logical
type fields cannot be viwed. The SPACE(x) is used simply to seperate
the data as shown in the window and the + signs are used to make one
continuous string of the window record display. If you make a mistake
here you will get an error message on the top line that says QUIT?
(Q/A/I). Enter Q to quit the program and start over by typing DBSCAN
at the DOS prompt. It helps to know the various field types and sizes
of the DBF file you are scanning in order to avoid the error above.
The Title prompt gets the description you wish to use to
headline the scan window.
The Starting Row prompt determines the starting row for the
window scan.
The Starting Column prompt determines the starting column
of the window scan.
The Length of window prompt determines the number of records
shown at one time and the actual length of the window.
Window dimensions that would go off the screen are pre-empted
with an error message. You must stay within the displayable area of
the screen.
Big Deal, so What?
The value of DBSCAN is the ability to use its techniques in
your own dBASE programs. This can be done by purchasing the source
code with complete commented documentation. Because the source is
written in plain old dBASE III Plus code NOT utilizing any compiler
enhancements provided by CLipper, Foxbase, and QuickSilver, its PRG
file can be used for scanning DBF records for any dBASE compatible
system. DBSCAN was compiled by Clipper; however, it can be compiled
by dBASE and Foxbase as well. The source to DBSCAN can even be used
as a DO PROCEDURE from the dBASE dot prompt. I have used the source
to DBSCAN for over a year now in over 100 working custom programs to
scan and select everything from Customer Names to Inventory Receipts
for a stock item. Review the attached order form to see exactly what
you get, the cost and ordering information. In the mean time, enjoy
the use of DBSCAN without restrictions or obligations and pass it on
to your friends for their review.
Clipper is a Nantucket trademark, QuickSilver is a Wordtech trademark,
Foxbase is a trademark of Fox Software, and dBASE is a trademark of
Ashton-Tate Corp.
Page 2
DBSCAN SOURCE CODE ORDER FORM
SOFTSHOP
P.O. BOX 353
SANDOWN, NH 03873
John A. Houck Pres.
(603)887-4887
You will receive the complete source code to DBSCAN and the
window procedure file as written on dBASE III Plus code. The source
is well commented and additional documentation on how to incorporate
this source code into your own applications is provided. The diskette
will contain DBSCAN.PRG, DBWND.PRG, COLOR.PRG, and SOURCE.DOC.
Qty Price Extension
DBSCAN source code and documentation ___ $40.00 _______
Shipping $ 3.00
TOTAL $ _______
__ 5 1/4 md2D diskette
__ 3 1/2 mf2-dd diskette
SEND TO: ___________________________________________________________
STREET: ______________________________________
CITY: ______________________________________
STATE: __ ZIP: __________
Thank you for your order of DBSCAN.
Page 3